package com.woniuxy.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IndentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IndentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIndentIdIsNull() {
            addCriterion("indent_id is null");
            return (Criteria) this;
        }

        public Criteria andIndentIdIsNotNull() {
            addCriterion("indent_id is not null");
            return (Criteria) this;
        }

        public Criteria andIndentIdEqualTo(Integer value) {
            addCriterion("indent_id =", value, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdNotEqualTo(Integer value) {
            addCriterion("indent_id <>", value, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdGreaterThan(Integer value) {
            addCriterion("indent_id >", value, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("indent_id >=", value, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdLessThan(Integer value) {
            addCriterion("indent_id <", value, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdLessThanOrEqualTo(Integer value) {
            addCriterion("indent_id <=", value, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdIn(List<Integer> values) {
            addCriterion("indent_id in", values, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdNotIn(List<Integer> values) {
            addCriterion("indent_id not in", values, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdBetween(Integer value1, Integer value2) {
            addCriterion("indent_id between", value1, value2, "indentId");
            return (Criteria) this;
        }

        public Criteria andIndentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("indent_id not between", value1, value2, "indentId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andBedIdIsNull() {
            addCriterion("bed_id is null");
            return (Criteria) this;
        }

        public Criteria andBedIdIsNotNull() {
            addCriterion("bed_id is not null");
            return (Criteria) this;
        }

        public Criteria andBedIdEqualTo(Integer value) {
            addCriterion("bed_id =", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdNotEqualTo(Integer value) {
            addCriterion("bed_id <>", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdGreaterThan(Integer value) {
            addCriterion("bed_id >", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("bed_id >=", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdLessThan(Integer value) {
            addCriterion("bed_id <", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdLessThanOrEqualTo(Integer value) {
            addCriterion("bed_id <=", value, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdIn(List<Integer> values) {
            addCriterion("bed_id in", values, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdNotIn(List<Integer> values) {
            addCriterion("bed_id not in", values, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdBetween(Integer value1, Integer value2) {
            addCriterion("bed_id between", value1, value2, "bedId");
            return (Criteria) this;
        }

        public Criteria andBedIdNotBetween(Integer value1, Integer value2) {
            addCriterion("bed_id not between", value1, value2, "bedId");
            return (Criteria) this;
        }

        public Criteria andIndentNumIsNull() {
            addCriterion("indent_num is null");
            return (Criteria) this;
        }

        public Criteria andIndentNumIsNotNull() {
            addCriterion("indent_num is not null");
            return (Criteria) this;
        }

        public Criteria andIndentNumEqualTo(String value) {
            addCriterion("indent_num =", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumNotEqualTo(String value) {
            addCriterion("indent_num <>", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumGreaterThan(String value) {
            addCriterion("indent_num >", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumGreaterThanOrEqualTo(String value) {
            addCriterion("indent_num >=", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumLessThan(String value) {
            addCriterion("indent_num <", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumLessThanOrEqualTo(String value) {
            addCriterion("indent_num <=", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumLike(String value) {
            addCriterion("indent_num like", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumNotLike(String value) {
            addCriterion("indent_num not like", value, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumIn(List<String> values) {
            addCriterion("indent_num in", values, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumNotIn(List<String> values) {
            addCriterion("indent_num not in", values, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumBetween(String value1, String value2) {
            addCriterion("indent_num between", value1, value2, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentNumNotBetween(String value1, String value2) {
            addCriterion("indent_num not between", value1, value2, "indentNum");
            return (Criteria) this;
        }

        public Criteria andIndentTimeIsNull() {
            addCriterion("indent_time is null");
            return (Criteria) this;
        }

        public Criteria andIndentTimeIsNotNull() {
            addCriterion("indent_time is not null");
            return (Criteria) this;
        }

        public Criteria andIndentTimeEqualTo(Date value) {
            addCriterion("indent_time =", value, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeNotEqualTo(Date value) {
            addCriterion("indent_time <>", value, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeGreaterThan(Date value) {
            addCriterion("indent_time >", value, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("indent_time >=", value, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeLessThan(Date value) {
            addCriterion("indent_time <", value, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeLessThanOrEqualTo(Date value) {
            addCriterion("indent_time <=", value, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeIn(List<Date> values) {
            addCriterion("indent_time in", values, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeNotIn(List<Date> values) {
            addCriterion("indent_time not in", values, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeBetween(Date value1, Date value2) {
            addCriterion("indent_time between", value1, value2, "indentTime");
            return (Criteria) this;
        }

        public Criteria andIndentTimeNotBetween(Date value1, Date value2) {
            addCriterion("indent_time not between", value1, value2, "indentTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNull() {
            addCriterion("pay_time is null");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNotNull() {
            addCriterion("pay_time is not null");
            return (Criteria) this;
        }

        public Criteria andPayTimeEqualTo(Date value) {
            addCriterion("pay_time =", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotEqualTo(Date value) {
            addCriterion("pay_time <>", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThan(Date value) {
            addCriterion("pay_time >", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_time >=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThan(Date value) {
            addCriterion("pay_time <", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThanOrEqualTo(Date value) {
            addCriterion("pay_time <=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeIn(List<Date> values) {
            addCriterion("pay_time in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotIn(List<Date> values) {
            addCriterion("pay_time not in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeBetween(Date value1, Date value2) {
            addCriterion("pay_time between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotBetween(Date value1, Date value2) {
            addCriterion("pay_time not between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNull() {
            addCriterion("return_time is null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNotNull() {
            addCriterion("return_time is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeEqualTo(Date value) {
            addCriterion("return_time =", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotEqualTo(Date value) {
            addCriterion("return_time <>", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThan(Date value) {
            addCriterion("return_time >", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("return_time >=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThan(Date value) {
            addCriterion("return_time <", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThanOrEqualTo(Date value) {
            addCriterion("return_time <=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIn(List<Date> values) {
            addCriterion("return_time in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotIn(List<Date> values) {
            addCriterion("return_time not in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeBetween(Date value1, Date value2) {
            addCriterion("return_time between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotBetween(Date value1, Date value2) {
            addCriterion("return_time not between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andIndentStatusIsNull() {
            addCriterion("indent_status is null");
            return (Criteria) this;
        }

        public Criteria andIndentStatusIsNotNull() {
            addCriterion("indent_status is not null");
            return (Criteria) this;
        }

        public Criteria andIndentStatusEqualTo(String value) {
            addCriterion("indent_status =", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotEqualTo(String value) {
            addCriterion("indent_status <>", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusGreaterThan(String value) {
            addCriterion("indent_status >", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusGreaterThanOrEqualTo(String value) {
            addCriterion("indent_status >=", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusLessThan(String value) {
            addCriterion("indent_status <", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusLessThanOrEqualTo(String value) {
            addCriterion("indent_status <=", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusLike(String value) {
            addCriterion("indent_status like", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotLike(String value) {
            addCriterion("indent_status not like", value, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusIn(List<String> values) {
            addCriterion("indent_status in", values, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotIn(List<String> values) {
            addCriterion("indent_status not in", values, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusBetween(String value1, String value2) {
            addCriterion("indent_status between", value1, value2, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentStatusNotBetween(String value1, String value2) {
            addCriterion("indent_status not between", value1, value2, "indentStatus");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyIsNull() {
            addCriterion("indent_money is null");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyIsNotNull() {
            addCriterion("indent_money is not null");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyEqualTo(BigDecimal value) {
            addCriterion("indent_money =", value, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyNotEqualTo(BigDecimal value) {
            addCriterion("indent_money <>", value, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyGreaterThan(BigDecimal value) {
            addCriterion("indent_money >", value, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("indent_money >=", value, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyLessThan(BigDecimal value) {
            addCriterion("indent_money <", value, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("indent_money <=", value, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyIn(List<BigDecimal> values) {
            addCriterion("indent_money in", values, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyNotIn(List<BigDecimal> values) {
            addCriterion("indent_money not in", values, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("indent_money between", value1, value2, "indentMoney");
            return (Criteria) this;
        }

        public Criteria andIndentMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("indent_money not between", value1, value2, "indentMoney");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}